import React from 'react';
import Button from '../components/common/Button';
import MessageBox from '../components/common/MessageBox';
const Dashboard = () => {
    const [isVisible, setIsVisible] = useState(true);
    return (
        <div>
            <h1>Dashboard</h1>
            <p>Welcome to your dashboard!</p>
            <Button  btnTxt="弹窗"></Button>
            <MessageBox isVisible={isVisible} onClose={()=>setIsVisible(!isVisible)}></MessageBox>
        </div>
    );
};

export default Dashboard;


